﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShuoXiangProductionPlatform
{
    public class JsonString
    {
        public class ApiMsg<T>
        {
            [JsonProperty("msg")]
            public string msg { get; set; }

            [JsonProperty("success")]
            public string success { get; set; }

            [JsonProperty("data")]
            internal T data { get; set; }
        }

        public class ApiMsgList<T>
        {
            [JsonProperty("msg")]
            public string msg { get; set; }

            [JsonProperty("success")]
            public string success { get; set; }

            [JsonProperty("data")]
            internal List<T> data { get; set; }
        }

        /// <summary>
        /// 登录返回的data实体
        /// </summary>
        public class logindata
        {
            public string userId { get; set; }

            public string role { get; set; }

            public string app_wprocess { get; set; }

            public string tea_type { get; set; }

            public string no { get; set; }

            public string name { get; set; }

            public string photo { get; set; }

      
        }

        /// <summary>
        /// 查询订单返回的data实体
        /// </summary>
        public class orderlistdata 
        {
            /// <summary>
            /// 订单号
            /// </summary>
            public string orderNO { get; set; }

            /// <summary>
            /// 赋码状态
            /// </summary>
            public string status { get; set; }

            /// <summary>
            /// 订单时间
            /// </summary>
            public string orderTime { get; set; }

            /// <summary>
            /// 订单总数
            /// </summary>
            public int total { get; set; }

            /// <summary>
            /// 已赋码数量
            /// </summary>
            public int setedNum { get; set; }

            /// <summary>
            /// 已装箱数量
            /// </summary>
            public int boxedNum { get; set; }

            /// <summary>
            /// 产品列表
            /// </summary>
            public string productList { get; set; }

          
            /// <summary>
            /// 产品详细信息列表
            /// </summary>
            public List<detailInfo> details { get; set; }
 
        }

        /// <summary>
        /// 产品详细信息
        /// </summary>
        public class detailInfo
        {
            /// <summary>
            /// 产品ID
            /// </summary>
            public string productId { get; set; }

            /// <summary>
            /// 产品图片
            /// </summary>
            public string productImg { get; set; }

            /// <summary>
            /// 产品名称
            /// </summary>
            public string productName { get; set; }

            /// <summary>
            /// 订单号
            /// </summary>
            public string orderNo { get; set; }

            /// <summary>
            /// 产品赋码总数
            /// </summary>
            public int productQuantity { get; set; }

            /// <summary>
            /// 已赋码数量
            /// </summary>
            public int setedNum { get; set; }

            public int tempNum { get; set; }

            /// <summary>
            /// 赋码状态
            /// </summary>
            public string status { get; set; }

            /// <summary>
            /// 产品品牌
            /// </summary>
            public string brand { get; set; }

            /// <summary>
            /// 批次号
            /// </summary>
            public string batchId { get; set; }

            /// <summary>
            /// 分类ID
            /// </summary>
            public string classificationId { get; set; }

        }
    }
}
